﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class HoaDonDTO
    {
        #region 1   -   Attributes

        private int _iD;

        private int _thanhVienMuaHang;

        private int _maGianHang;

        private int _tinhTrangHoaDon;

        private long _tongSoTienThanhToan;

        private DateTime _thoiGianChuyenHang;

        private DateTime _thoiGianThanhToan;

        private DateTime _thoiGianLapHoaDon;

        #endregion

        #region 2   -   Properties
        
        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        public int ThanhVienMuaHang
        {
            get { return _thanhVienMuaHang; }
            set { _thanhVienMuaHang = value; }
        }

        public int MaGianHang
        {
            get { return _maGianHang; }
            set { _maGianHang = value; }
        }

        public int TinhTrangHoaDon
        {
            get { return _tinhTrangHoaDon; }
            set { _tinhTrangHoaDon = value; }
        }

        public long TongSoTienThanhToan
        {
            get { return _tongSoTienThanhToan; }
            set { _tongSoTienThanhToan = value; }
        }

        public DateTime ThoiGianChuyenHang
        {
            get { return _thoiGianChuyenHang; }
            set { _thoiGianChuyenHang = value; }
        }

        public DateTime ThoiGianThanhToan
        {
            get { return _thoiGianThanhToan; }
            set { _thoiGianThanhToan = value; }
        }

        public DateTime ThoiGianLapHoaDon
        {
            get { return _thoiGianLapHoaDon; }
            set { _thoiGianLapHoaDon = value; }
        }

        #endregion

        #region 2   -   Operators
       
        #endregion 2   -   Operators

        #region 3   -   Constructors

        public HoaDonDTO(int thanhvienmuahang, int magianhang, int tinhtranghoadon,
            long tongsotienthanhtoan, DateTime thoigianchuyenhang, DateTime thoigianthanhtoan, DateTime thoigianlaphoadon)
        {
            ThanhVienMuaHang = thanhvienmuahang;
            MaGianHang = magianhang;
            TinhTrangHoaDon = tinhtranghoadon;
            TongSoTienThanhToan = tongsotienthanhtoan;
            ThoiGianChuyenHang = thoigianchuyenhang;
            ThoiGianThanhToan = thoigianthanhtoan;
            ThoiGianLapHoaDon = thoigianlaphoadon;
        }

        #endregion
    }
}
